﻿{#template MAIN}
<table id="gridProviderContact" cellpadding="5" cellspacing="0" class="grid">
    <thead>
        <tr>
            <th>
                Seq
            </th>
            <th style="display: none">
                ID
            </th>
            <th style="display: none">
                Gender
            </th>
            <th>
                Title
            </th>
            <th>
                Contact Name
            </th>
            <th>
                Phone
            </th>
            <th>
                Ext.
            </th>
            <th>
                Cell Phone
            </th>
            <th>
                Email
            </th>
            <th>
                Job Title
            </th>
            <th>
                Department
            </th>
            <th>
                <a class="btnNew">Add</a>
            </th>
        </tr>
    </thead>
    <tbody>
        {#foreach $T.List as contact}
        <tr class="{#cycle values=['','evenRow']}">
            <td align="center">
                {$T.contact$index + 1}
            </td>
            {#include ROW root=$T.contact}
            <td>
                <a contactid='{$T.contact.ContactID}' class="btnEdit new">Edit</a> /<a contactid="{$T.contact.ContactID}"
                    class="btnDelete new">Remove</a>
            </td>
        </tr>
        {#/for}
    </tbody>
    <tfoot>
        <th colspan="12">
        </th>
    </tfoot>
</table>
{#/template MAIN} {#template ROW}
<td style="display: none">
    {$T.Contact.ContactID}
</td>
<td style="display: none">
    {$T.Contact.Gender}
</td>
<td>
    {#if $T.Contact.Gender }Mr{#else}Mrs{#/if}
</td>
<td>
    {$T.Contact.ContactName}
</td>
<td>
    {$T.Contact.Phone}
</td>
<td>
    {$T.Contact.WorkExtension}
</td>
<td>
    {$T.Contact.CellPhone}
</td>
<td>
    {$T.Contact.Email}
</td>
<td>
    {$T.JobTitle}
</td>
<td>
    {$T.Department}
</td>
{#/template ROW}